package com.dgw.springbootandshiro.controller;

import org.apache.shiro.authz.annotation.RequiresUser;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: springboot&shiro
 * @description:
 * @author: Mr.Dai
 * @create: 2020-03-27 17:26
 **/
@RestController
public class Test {

    @RequiresUser
    @GetMapping("/login2")
    public String login() {
        System.out.println("ssss");
        return "other";
    }
}
